##########################################
## Copyright 2012-2013 Ceruti Francesco & contributors
##
## This file is part of LiSP (Linux Show Player).
##########################################

from PyQt4 import QtGui, QtCore


class Progress(QtGui.QProgressDialog):

    def __init__(self, title='loading ...', parent=None):
        super(Progress, self).__init__(parent)
        self.setWindowModality(QtCore.Qt.ApplicationModal)
        self.setWindowTitle(title)
        self.setMaximumSize(320, 70)
        self.setMinimumSize(320, 70)
        self.resize(320, 70)
        self.setMinimum(0)
        self.setMaximum(0)
        self.setCancelButton(None)

    def closeEvent(self, e):
        e.ignore()
